package com.heima.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "tb_sku")
public class Sku implements Serializable {
    @TableId(value = "sku_id", type = IdType.ASSIGN_ID)
    private Long skuId;

    private String skuName;

    private String skuImage;

    private Integer price;

    private Integer classId;

    @TableField(value = "is_discount")
    private Boolean discount;

    private String unit;

    private String brandName;

    private LocalDateTime createTime;

    private LocalDateTime updateTime;

    @TableField(exist = false)
    private SkuClass skuClass;

    private static final long serialVersionUID = 1L;

}